<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid black;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
<h1 style="display:inline;">user</h1>
<button style="margin-left:30px;"><a href="/">返回</a></button>
<table>
    <thead>
    <tr>
        <th>ID</th>
        <th>Username</th>
        <th>Password</th>
        <th>Operations</th>
    </tr>
    </thead>
    <tbody>
    {{ range .data }}
    <tr>
        <td>{{ .Id }}</td>
        <td>{{ .UserName }}</td>
        <td>{{ .Password }}</td>
        <td>
            <button><a href="/user/edit/{{ .Id }}">edit</a></button>
            <button><a href="/user/delete/{{ .Id }}">delete</a></button></td>
    </tr>
    {{ end }}
    </tbody>
</table>
</body>
</html>